package hxg.single;

/**
 * @author HeXiangGuang
 * @create 2021-06-22 12:22
 */
public class test {
    private Singleton singleton;

    public static void main(String[] args) {
        //i++是先赋值在计算,++i先计算在赋值;
//        Singleton.getSingleton();
        int i = 0;
        int b = 0;
        int c = 0;
        b =i++;
//        c = ++i;
        System.out.println(c);
        System.out.println(b);
        System.out.println(i);
        System.out.println(i++);
        System.out.println(i);
    }
}
